package com.chinatsp.onlineapp.base;

import tsp.cn.http.MyApplication;
import android.content.Context;

import com.chinatsp.onlineapp.utils.Preferences;

public class BaseApplication extends MyApplication {

	/**
	 * 保存数据
	 */
	public static Preferences mPreferences = null;

	public static Preferences getmPreferences() {
		return mPreferences;
	}

	@Override
	public void onCreate() {
		super.onCreate();
		// 封装提交的公共数据
		mPreferences = new Preferences(getSharedPreferences(Constant.PREFERENCES_NAME, Context.MODE_PRIVATE));
	}

}
